package com.lion.ball.modules.orderfood.web.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.beans.factory.annotation.Autowired;
import com.lion.common.spring.business.base.BaseCrudController;
import com.lion.ball.modules.orderfood.domain.entity.OfdOrderFoodEntity;
import com.lion.ball.modules.orderfood.web.model.params.create.OfdOrderFoodCreateParam;
import com.lion.ball.modules.orderfood.web.model.params.update.OfdOrderFoodUpdateParam;
import com.lion.ball.modules.orderfood.web.model.params.search.OfdOrderFoodSearchParam;
import com.lion.ball.modules.orderfood.web.model.params.order.OfdOrderFoodOrderParam;
import com.lion.ball.modules.orderfood.web.model.results.OfdOrderFoodResult;
import com.lion.ball.modules.orderfood.dao.repository.OfdOrderFoodRepository;
import com.lion.ball.modules.orderfood.service.assistants.converters.OfdOrderFoodConverter;
import com.lion.ball.modules.orderfood.service.def.OfdOrderFoodService;
import com.lion.ball.modules.orderfood.web.api.OfdOrderFoodApi;

/**
 * @author Chris Chan
 * Create on 2025-10-18 13:33
 * Use for: 订单商品 接口实现
 * Explain:
 * 
 */
@RestController
@RequestMapping("ofd/order/food")
public class OfdOrderFoodController implements OfdOrderFoodApi, BaseCrudController<
        OfdOrderFoodEntity,
        OfdOrderFoodCreateParam,
        OfdOrderFoodUpdateParam,
        OfdOrderFoodSearchParam,
        OfdOrderFoodOrderParam,
        OfdOrderFoodResult,
        OfdOrderFoodRepository,
        OfdOrderFoodConverter,
        OfdOrderFoodService
        > {

    @Autowired
    OfdOrderFoodService ofdOrderFoodService;

    @Override
    public OfdOrderFoodService getService() {
        return ofdOrderFoodService;
    }
}